#coding:utf8
from SpiderHelper import SpiderHelper

if __name__ == "__main__":
    print('start')
    HOST = "http://www.liaoxuefeng.com"
    url = HOST+'/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000'
    spider = SpiderHelper(HOST)
    html = spider.downloadPage(url)
    imgs = spider.getImages(html)
    spider.downloadImages(imgs)
    #menuList = getMenu(html)
    #downloadAllPages(menuList)
    #r'//*[@id="main"]/div[3]/div[2]/div/div[2]/div[2]'
    #fp = open("1.html",'w')
    #fp.write(html)
    #fp.close()
    #print(html)
